<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:s="http://www.springframework.org/security/tags">
	<h:form>
		<p:menubar autoSubmenuDisplay="false">
			<p:menuitem value="${msg['menu.dashboard']}" url="dashboard.faces"
				icon="ui-icon-home"/>
			<s:authorize ifAnyGranted="ROLE_ADMIN">
				<p:submenu label="${msg['menu.security']}" icon="ui-icon-key">
					<p:menuitem value="${msg['menu.users']}"
						url="usersList.faces" />
					<p:menuitem value="${msg['menu.groups']}"
						url="groupsList.faces" />
				</p:submenu>
			</s:authorize>
			<s:authorize ifAnyGranted="ROLE_EXPERT, ROLE_TEACHER, ROLE_STUDENT">
				<p:submenu label="${msg['menu.learning']}" icon="ui-icon-flag">
					<s:authorize ifAnyGranted="ROLE_EXPERT">
						<p:menuitem value="${msg['menu.editor']}"
							url="expertCoursesList.faces" />
					</s:authorize>
					<s:authorize ifAnyGranted="ROLE_TEACHER">
						<p:menuitem value="${msg['menu.review']}"
							url="teacherCoursesList.faces" />
					</s:authorize>
					<s:authorize ifAnyGranted="ROLE_STUDENT">
						<p:menuitem value="${msg['menu.tasks']}"
							url="studentCoursesList.faces" />
					</s:authorize>
				</p:submenu>
			</s:authorize>
			<s:authorize ifAnyGranted="ROLE_OBSERVER">
				<p:menuitem value="${msg['menu.reports']}" url="#"
					icon="ui-icon-document"/>
			</s:authorize>
			<p:menuitem value="${msg['common.exit']}" url="/logout"
				icon="ui-icon-closethick"/>
		</p:menubar>
	</h:form>
</ui:composition>
